﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Xms.Abp.Modularity;

namespace Xms.Abp.Core;

public class XmsAbpCoreModule: XmsModule
{
    public override void PreConfigureServices(ServiceConfigurationContext context)
    {
        base.PreConfigureServices(context);
    }

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        base.ConfigureServices(context);

        context.Services.AddTransient(typeof(IDistributedSemaphore<>), typeof(DistributedSemaphore<>));
        context.Services.AddTransient(typeof(ISerialNumberGenerator<>), typeof(SerialNumberGenerator<>));
    }
}
